package cn.xiaopengstack.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import cn.bugstack.middleware.db.router.annotation.DBRouterStrategy;
import cn.xiaopengstack.infrastructure.persistent.po.UserBehaviorRebateOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author jiangyangang
* @description 针对表【user_behavior_rebate_order_000(用户行为返利流水订单表)】的数据库操作Mapper
* @createDate 2025-07-09 21:48:02
* @Entity cn.xiaopengstack.infrastructure.persistent.po.UserBehaviorRebateOrder
*/
@DBRouterStrategy(splitTable = true)
@Mapper
public interface IUserBehaviorRebateOrderDao {

    int insert(UserBehaviorRebateOrder record);

    @DBRouter(key = "userId")
    int insertSelective(UserBehaviorRebateOrder record);

    UserBehaviorRebateOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserBehaviorRebateOrder record);

    int updateByPrimaryKey(UserBehaviorRebateOrder record);

    @DBRouter(key = "userId")
    List<UserBehaviorRebateOrder> queryOrderByOutBusinessNo(UserBehaviorRebateOrder userBehaviorRebateOrder);
}
